{extend name="template/base" /}
{block name="content"}
<div class="page-container">
  <!--  <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
    	<input type="text" class="input-text" style="width:250px" placeholder="ID" name="id" value="{$Request.param.id}">
    	<input type="text" class="input-text" style="width:250px" placeholder="标题" name="title" value="{$Request.param.title}">
    	<input type="text" class="input-text" style="width:250px" placeholder="类型ID" name="typeid" value="{$Request.param.typeid}">
        <button type="submit" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>-->
    <div class="cl pd-5 bg-1 bk-gray">
       <!-- <span class="l">
            {tp:menu menu="add" /}
        </span>-->
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>

    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th width="80">ID</th>
            <th width="80">头像</th>
            <th width="80">用户名</th>
            <th width="80">活动描述</th>
            <th width="80">图片</th>
            <th width="80">地址</th>
            <th width="80">浏览量</th>
            <th width="80">发布时间</th>
            <th width="80">出发时间</th>
            <th width="80">类型</th>
            <!--<th width="80">审核状态</th>-->
            <th width="80">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <?php $photo = explode("|",$vo['photo']);?>
        <tr class="text-c">
            <td>{$vo.id}</td>
            <td><img src="{$vo.img}" style="width: 60px;"></td>
            <td>{$vo.name}</td>
            <td>{$vo.content}</td>
            <td>
                {foreach $photo as $k => $v}
                <img src="{$v}" style="width: 60px;">
                {/foreach}
            </td>
            <td>{$vo.address}</td>
            <td>{$vo.count}</td>
            <td>{$vo.create_time}</td>
            <td>{$vo.go_time}</td>
            <td>{if $vo.cate_id eq 1}同城{elseif $vo.cate_id eq 2}热门{else}旅游{/if}</td>
            <!--<td>{if $vo.status eq 0}未审核{elseif $vo.status eq 1}审核通过{else}审核失败{/if}</td>-->
            <td>{tp:menu menu='sedit,sdelete' /}</td> 
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page}</div>
</div>
{/block}